<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>custom-link</title>
    <link rel="stylesheet" href="../1.switch-page/css/normalize.css"/>
    <link rel="stylesheet" href="css/layout.css"/>

    <style type="text/css">
        .container{
            width: 70%;
            margin: 0 auto;
        }

        .form{
            /*display: flex;*/
            margin: 0 auto;
            width: 450px;
            padding-right: 50px;
            border: 1px solid #eee;
            border-radius: 10px;
        }
        .form .legend{
            display: flex;
            justify-content: center;
            align-items: center;
            height: 50px;
            margin: 20px 0;
        }
        .form .legend .title{
            text-align: center;
            font-size: 20px;
            line-height: 40px;
            color: #282c34;
        }
        .form .legend  label{
            width: 150px;
            height: 100%;
            line-height: 50px;
            text-align: right;
            color: #555555;
            font-size: 18px;
            font-weight: bold;
        }
        .form .legend  input{
            width: calc(100% - 150px);
            /*height: 100%;*/
            line-height: 30px;
            text-align: justify;
            color: #555555;
            font-size: 18px;
            border: 1px solid #eee;
            border-radius: 5px;
            padding-left: 10px;
        }


        .btn{
            display: inline-block;
            padding: 5px 10px;
            min-width: 50px;
            height:30px;
            line-height: 30px;
            font-size: 20px;
            background-color: #Fafafa;
            color: #666;
            text-align: center;
            cursor: pointer;
            margin: 0 10px;
        }

        .btn-add{
            background-color: #2476ff;;
            color: #FFF;
        }

        .btn-delete{
            background-color: chocolate;
            color: #FFF;
        }

        .btn-edit{
            background-color: #ffb342;;
            color: #FFF;
        }
        .btn-update{
            background-color: #1bffa1;;
            color: #FFF;
        }

        .item{
            display: flex;
            line-height: 30px;
            font-size: 16px;
            color: rgba(25, 18, 95, 0.95);
            cursor: pointer;
        }
        .item span {
            margin: 0 15px;
        }

        .about-container{}
        .form-container .title,.about-container .title,.message-container .title{
            text-align: center;
            padding: 10px 0;
            border-bottom: 1px solid #eeeeee;
            border-top: 1px solid #eeeeee;
        }
    </style>
    <!-- <Route path="*" component={NoMatch} /> -->
    <!-- 加载 React。-->
    <!-- 注意: 部署时，将 "development.js" 替换为 "production.min.js"。-->
    <script src="../../libs/js/react.production.min.js" crossorigin></script>
    <script src="../../libs/js/react-dom.production.min.js" crossorigin></script>
    <script src="../../libs/js/babel.min.js"></script>
    <!-- react router -->
    <script src="../../libs/js/react-router-dom@5.2.0.js"></script>

</head>
<body>
<div id="root"></div>
<script type="text/babel" src="./custom-link.js"></script>
<script type="text/babel">
    const {HashRouter, Router, Switch, Route, NavLink, Redirect, IndexRoute} = ReactRouterDOM;
    const {PureComponent} = React;
    class App extends PureComponent {
        render() {
            return(
                <div className="container">
                    <CustomLinkExample/>
                </div>
            )
        }
    }
    ReactDOM.render(<App/>, document.getElementById("root"));
</script>
</body>
</html>
